package cn.tedu.zhyl.base.config;

import cn.tedu.zhyl.base.interceptors.AutoFillInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
@MapperScan("cn.tedu.zhyl.*.mapper")
public class MyBatisConfig {
    /***
     *  自动填充拦截器
     */
    @Bean
    public AutoFillInterceptor autoFillInterceptor(){
        return new AutoFillInterceptor();
    }
}
